package vtt.android.cartoon_video.utils;

import vtt.android.cartoon_video.Constants;
import android.content.Context;
import android.content.SharedPreferences;

import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;

public class CommonUtils {
	/**
	 * load admob
	 * @param adView
	 */
	public static void loadAdmob(AdView adView) {
		// Look up the AdView as a resource and load a request.
		AdRequest adRequest = new AdRequest.Builder()
//				.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
//				.addTestDevice("AD3EA773211B100433F351BBFFAE240C")
				.build();
		adView.loadAd(adRequest);
	}
	
	public static SharedPreferences getSharedPreferences(Context context){
	    return context.getSharedPreferences(Constants.SHARE_PREFERENCE, Context.MODE_PRIVATE);
	}
}
